package com.maven.springaop.demos.aspect;


import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.annotation.*;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Slf4j
//@Component
@Aspect
// 当切面 过多时，可以使用 @Order 来 规定优先级
@Order(1)
public class AspectDemo2 {

    @Before("com.maven.springaop.demos.aspect.AspectDemo.pc()")
    public void doBefore2() {
        log.info("doBefore2 执行");
    }

    @After("com.maven.springaop.demos.aspect.AspectDemo.pc()")
    public void doAfter2() {
        log.info("doAfter2 执行");
    }


}
